package com.hooper.iot.viid.feign;

import com.hooper.iot.viid.dto.subscribe.add.ViidSubscribeDTO;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;


@Component
@FeignClient(name = "viidSubscribeFeign", url = "${feign.viid}")
public interface ViidSubscribeFeign {

    @PostMapping(value = "/VIID/Subscribes")
    String add(@RequestBody ViidSubscribeDTO subscribeDTO);

    @DeleteMapping(value = "/VIID/Subscribes/{SubscribeID}")
    void del(@PathVariable(value = "SubscribeID") String subscribeId);

    @GetMapping(value = "/VIID/Subscribes")
    String query(@RequestParam(value = "SubscribeID") String subscribeId);
}